<script type="text/javascript" src="../../../jquery.min.js"></script>
<script type="text/javascript" src="../../../pageoffice.js" id="po_js_main"></script>
<style>
	.btn-team button {
		background-color: #4e9ee9;
		color: #ffffff;
		border: none;
		width: 100px;
	}
</style>
<body>
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
	<ul class="layui-tab-title">
		<li class="layui-this">提出资料 </li>
	</ul>
	<div class="layui-tab-content">
		<div class="layui-tab-item layui-show">
			<div style="padding-top:10px" id="div_content">
				<div class="row row-right-content">
					<div class="col-sm-12">
						<div id="view"  style="height: 600px;">
							<div class="layui-form table-info" style="width: 100%;height: auto;overflow:auto; position: relative;margin: 0;" data-spy="scroll" data-target="#navbar-example" data-offset="0" >
								<table class="table table-bordered">
									<tbody>
									<tr>
										<th>合成模板名称</th>
										<th>合成模板编号</th>
										<th>版本号</th>
										<th>创建时间</th>
										<th>修改时间</th>
										<th>操作</th>
									</tr>
                                    <#if(obj.list.~ size>0){#>
                                    <#for(file in obj.list){#>
									<tr>
										<td>${file.putford_name}</td>
										<td>${file.putford_code}</td>
										<td></td>
										<td>${file.create_time}</td>
										<td>${file.update_time}</td>
										<td class="btn-operate">
                                            <button type="button" class="btn btn-detail"  onclick="show('${file.id}')">查看</button>
											<button type="button" class="btn btn-edit"  onclick="mergeAll('${file.id}')">初始化</button>
                                        </td>
									</tr>
                                    <#}#>
                                    <#}#>

									<#if(obj.listNew.~ size>0){#>
									<#for(file in obj.listNew){#>
									<tr>
										<td>${file.mention_information_name}</td>
										<td>${file.mention_information_code}</td>
										<td>0.1-GA</td>
										<td>${file.create_time}</td>
										<td>${file.update_time}</td>
										<td class="btn-operate">
											<button type="button" class="btn btn-detail"  onclick="mentionDetail('${file.id}')">查看</button>
											<!--<button type="button" class="btn btn-detail"  onclick="show('${file.id}')">查看</button>-->
										</td>
									</tr>
									<#}#>
									<#}#>

									<#if(obj.listSgt.~ size>0){#>
									<#for(file in obj.listSgt){#>
									<tr>
										<td>${file.file_name}</td>
										<td></td>
										<td></td>
										<td></td>
										<td></td>
										<td class="btn-operate">
											<button type="button" class="btn btn-detail"  onclick="fileDetail('${file.id}')">查看</button>
											<!--<button type="button" class="btn btn-detail"  onclick="show('${file.id}')">查看</button>-->
										</td>
									</tr>
									<#}#>
									<#}#>
                                    </tbody>
                                </table>
                            </div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="layui-tab-item"></div>
	</div>
</div>
<script>

    function mergeAll(fileId) {
        var url1 = base + "/projectCenter/tczl/mergeWord/" + project_id + "/" + fileId + "/1";
        POBrowser.openWindowModeless(url1, 'width=1050px;height=900px;');
    }
</script>
<script type="text/javascript" src="${base}/js/development/projectcenter/tczl/index.js"></script>